<template>
	<view class="padding-left padding-right">
		<yw-page ref="ywPage" :height="0" api="tongzhiFindAllByPage">
			<template #content="{ dataList }">
				<view v-for="(item,index) in dataList" :key="item.id">
					<view class="padding-sm bg-white margin-top-sm margin-bottom-sm" @click="itemClick(item,index)">
						<view class="text-sm" style="height: 100rpx;">{{item.title}}</view>
						<view class="text-xs text-right">{{item.createTime}}</view>
					</view>
				</view>
			</template>
		</yw-page>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				searchModel:{
					state:1,
				}
			}
		},
		onLoad() {
			this.$nextTick(()=>{
				this.$refs.ywPage.shuaxin(this.searchModel)
			})
		},
		methods: {
			itemClick(item,index){
				uni.$common.navigateTo("/subpkg/commons/web-show/web-show",{
					type:"HTML",
					title:item.title,
					content:encodeURIComponent(item.content)
				})
			}
		}
	}
</script>

<style>

</style>
